package com.hzhr.extdevice.controller;

import com.hzhr.extdevice.mapper.device.DevMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class IotDeviceController {
    @Autowired
    DevMapper devMapper;

    @RequestMapping(value = "/iot-device/updateIotPlatformDeviceId", method = RequestMethod.POST)
    public void updateIotPlatformDeviceId(@RequestParam("imei") String imei, @RequestParam("iotPlatformDeviceId") String iotPlatformDeviceId) {
        //更新物联设备的iot平台设备号
        devMapper.update1(iotPlatformDeviceId, imei);
    }
}
